import { Component, OnInit,Output,EventEmitter } from '@angular/core';
import { home } from '../../home.data';

@Component({
  selector: 'app-home-page-button',
  templateUrl: './home-page-button.component.html'
})
export class HomePageButtonComponent implements OnInit {

  constructor() { }

  @Output() onSubmit = new EventEmitter<void>();

  ngOnInit() {

  }

  searchData = {
    queryCriteria:'',
    completeStatus:'',
    taskType:''
  };

  //搜索
  search() {
    home.retrieval.queryCriteria = this.searchData.queryCriteria;
    home.retrieval.completeStatus = this.searchData.completeStatus;
    home.retrieval.taskType = this.searchData.taskType;
    this.onSubmit.emit();
  }
  //响应搜索
  changesearch() {
      this.search();
  }

}
